<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/><meta name="theme-color" content="#3b3e43"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-status-bar-style" content="black"><meta name="format-detection" content="telephone=no"/><title>Unix/Linux Shell脚本入门实例[00原创] - D 的个人博客</title><meta name="description" content="这是一个简单了 Shell 实例。下面是它的要求描述： 实验五 UNIX Shell 程序设计 1实验内容：使用UNIX 	Shell程序设计语言，编写UNIX 	Shell 应用程序。
2
3
4
5
6
7实验要求：按下列要求编写Shell脚本，把所学的各种UNIX命令串联起来。
 1.运行 Shell 脚本，首先显示类似如下的菜单： What would you like to do: List Directory **********************1 ...."/><meta property="og:description" content="这是一个简单了 Shell 实例。下面是它的要求描述： 实验五 UNIX Shell 程序设计 1实验内容：使用UNIX 	Shell程序设计语言，编写UNIX 	Shell 应用程序。
2
3
4
5
6
7实验要求：按下列要求编写Shell脚本，把所学的各种UNIX命令串联起来。
 1.运行 Shell 脚本，首先显示类似如下的菜单： What would you like to do: List Directory **********************1 ...."/>    <meta name="keywords" content="88250"/><link rel="dns-prefetch" href="https://cdn.jsdelivr.net/gh/88250/solo@4.2.0/src/main/resources"/><link rel="dns-prefetch" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="https://cdn.jsdelivr.net/gh/88250/solo@4.2.0/src/main/resources"><link rel="icon" type="image/png" href="https://img.hacpai.com/avatar/1353745196354_1584267806213.jpeg?imageView2/1/w/256/h/256/interlace/0/q/100"/><link rel="apple-touch-icon" href="https://img.hacpai.com/avatar/1353745196354_1584267806213.jpeg?imageView2/1/w/256/h/256/interlace/0/q/100"><link rel="shortcut icon" type="image/x-icon" href="https://img.hacpai.com/avatar/1353745196354_1584267806213.jpeg?imageView2/1/w/256/h/256/interlace/0/q/100"><meta name="copyright" content="B3log"/><meta http-equiv="Window-target" content="_top"/><meta property="og:locale" content="zh_CN"/><meta property="og:title" content="Unix/Linux Shell脚本入门实例[00原创] - D 的个人博客"/><meta property="og:site_name" content="D 的个人博客"/><meta property="og:url"      content="https://dl88250.gitee.io/articles/2007/07/03/1183487160000.html?"/><meta property="og:image" content="https://img.hacpai.com/avatar/1353745196354_1584267806213.jpeg?imageView2/1/w/256/h/256/interlace/0/q/100"/><link rel="search" type="application/opensearchdescription+xml" title="Unix/Linux Shell脚本入门实例[00原创] - D 的个人博客" href="/opensearch.xml"><link href="https://dl88250.gitee.io/rss.xml" title="RSS" type="application/rss+xml" rel="alternate"/><link rel="manifest" href="https://dl88250.gitee.io/manifest.json">        <link rel="canonical" href="https://dl88250.gitee.io/articles/2007/07/03/1183487160000.html">        <link rel="stylesheet"
              href="https://cdn.jsdelivr.net/gh/88250/solo@4.2.0/src/main/resources/skins/Bubble/css/base.css?1593357893538"/>
            <link rel="prev" title="Liva运行时截图[00原创]" href="https://dl88250.gitee.io/articles/2007/07/03/1183461660000.html">
            <link rel="next" title="Linux下部署RMI的问题与解决方法[00原创]" href="https://dl88250.gitee.io/articles/2007/07/05/1183655280000.html">
    <script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?cf42ff23d16b7774f35a38218377e8a0";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body class="fn__flex-column">
<div id="pjax" class="fn__flex-1">
    
    <progress class="fn__progress"></progress>
    <header class="header header--article">
        <div class="wrapper header__title">
            <h1 class="header__h1 fn__flex-inline">
                <a href="https://dl88250.gitee.io" rel="start">D 的个人博客</a>
            </h1>
            <h2 class="header__desc header__desc--title">全职做开源，自由职业者</h2>
            <div class="header__desc">
                
            </div>
            <svg class="header__down" id="headerDown" viewBox="0 0 32 32" width="100%" height="100%">
                <path d="M15.992 25.304c-0 0-0 0-0.001 0-0.516 0-0.981-0.216-1.31-0.563l-0.001-0.001-14.187-14.996c-0.306-0.323-0.494-0.76-0.494-1.241 0-0.998 0.809-1.807 1.807-1.807 0.517 0 0.983 0.217 1.313 0.565l0.001 0.001 12.875 13.612 12.886-13.612c0.331-0.348 0.797-0.565 1.314-0.565 0.481 0 0.918 0.187 1.242 0.493l-0.001-0.001c0.723 0.687 0.755 1.832 0.072 2.555l-14.201 14.996c-0.33 0.348-0.795 0.564-1.311 0.564-0.001 0-0.003 0-0.004 0h0z"></path>
            </svg>
        </div>
    </header>
    <div class="side__menu">
        <svg viewBox="0 0 32 32" width="100%" height="100%">
            <path d="M30 18h-28c-1.1 0-2-0.9-2-2s0.9-2 2-2h28c1.1 0 2 0.9 2 2s-0.9 2-2 2zM30 6.25h-28c-1.1 0-2-0.9-2-2s0.9-2 2-2h28c1.1 0 2 0.9 2 2s-0.9 2-2 2zM2 25.75h28c1.1 0 2 0.9 2 2s-0.9 2-2 2h-28c-1.1 0-2-0.9-2-2s0.9-2 2-2z"></path>
        </svg>
        <span>
            &nbsp; menu
        </span>
    </div>
    <div class="side__main">
        <div class="side__bg"></div>
        <div class="side__panel">
            <svg class="side__close ft__a" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20"
                 viewBox="0 0 20 20">
                <path d="M18.362 19.324c-0.902 0.902-2.363 0.902-3.263 0l-5.098-5.827-5.098 5.825c-0.902 0.902-2.363 0.902-3.263 0-0.902-0.902-0.902-2.363 0-3.263l5.304-6.057-5.306-6.061c-0.902-0.902-0.902-2.361 0-3.263s2.361-0.902 3.263 0l5.1 5.829 5.098-5.829c0.902-0.902 2.361-0.902 3.263 0s0.902 2.363 0 3.263l-5.304 6.061 5.304 6.057c0.902 0.902 0.902 2.363 0 3.265z"></path>
            </svg>

            <div class="side__header">
                <a href="https://dl88250.gitee.io" rel="start"><img class="side__logo" alt="D 的个人博客" src="https://img.hacpai.com/avatar/1353745196354_1584267806213.jpeg?imageView2/1/w/128/h/128/interlace/0/q/100"></a>

                <div class="side__meta">
                    413 文章 <br>
                    <span data-uvstaturl="https://dl88250.gitee.io">3446695</span> 浏览
                    
                </div>
            </div>

            <div class="side__title">
                <span>ღゝ◡╹)ノ❤️</span>
            </div>
            <ul class="side__nav">
                <li>
                    <a href="https://dl88250.gitee.io" rel="start">
                            D 的个人博客
                    </a>
                </li>
                    <li>
                        <a href="/about" target="_self"><img
                                class="page-icon" src="https://static.hacpai.com/images/tags/react.png" alt="关于我">关于我</a>
                    </li>
                    <li>
                        <a href="/my-github-repos" target="_self"><img
                                class="page-icon" src="/images/github-icon.png" alt="我的开源">我的开源</a>
                    </li>
                    <li>
                        <a href="https://hacpai.com" target="_blank"><img
                                class="page-icon" src="https://static.hacpai.com/images/favicon.png" alt="黑客派">黑客派</a>
                    </li>
                    <li>
                        <a href="https://b3log.org" target="_blank"><img
                                class="page-icon" src="https://static.b3log.org/images/brand/b3log-32.png" alt="B3log">B3log</a>
                    </li>
                <li>
                    <a href="https://dl88250.gitee.io/categories.html">分类</a>
                </li>
                <li>
                    <a href="https://dl88250.gitee.io/tags.html">标签墙</a>
                </li>
                <li>
                    <a href="https://dl88250.gitee.io/archives.html">存档</a>
                </li>
                <li>
                    <a href="https://dl88250.gitee.io/links.html">友情链接</a>
                </li>
                <li>
                    <a rel="alternate" href="https://dl88250.gitee.io/rss.xml">RSS</a>
                </li>
            </ul>
        </div>
    </div>
    <div class="article__top" style="background-image: url(https://img.hacpai.com/bing/20180722.jpg?imageView2/1/w/1280/h/720/interlace/1/q/100)">
        <div style="background-image: url(https://img.hacpai.com/bing/20180722.jpg?imageView2/1/w/1280/h/720/interlace/1/q/100)"></div>
        <canvas id="articleTop"></canvas>
    </div>
    <div class="article">
        <div class="ft__center">
            <div class="article__meta">
                <time>
                    2007-07-04
                </time>
                /
                    <a rel="tag"
                       href="https://dl88250.gitee.io/tags/Shell%20Programming">Shell Programming</a> &nbsp;
            </div>
            <h2 class="article__title">
                Unix/Linux Shell脚本入门实例[00原创]
            </h2>
<div class="article__share"
     data-title="Unix/Linux Shell脚本入门实例[00原创]"
     data-blogtitle="D 的个人博客"
     data-url="https://dl88250.gitee.io/articles/2007/07/03/1183487160000.html"
     data-avatar="https://img.hacpai.com/avatar/1353745196354_1584267806213.jpeg?imageView2/1/w/128/h/128/interlace/0/q/100">
    <span class="item" data-type="qqz">
        <svg viewBox="0 0 32 32" width="100%" height="100%">
            <path d="M22.824 13.989l-8.348 6.287s3.351 0.522 8.404 0.461l-0.23-1.040 7.2-6.549c0.132-0.12 0.183-0.312 0.129-0.487s-0.203-0.299-0.377-0.314l-9.492-0.856-3.708-9.213c-0.068-0.169-0.226-0.279-0.401-0.279s-0.333 0.11-0.401 0.279l-3.708 9.213-9.492 0.856c-0.174 0.015-0.323 0.139-0.377 0.314s-0.004 0.366 0.129 0.487l7.2 6.549-2.158 9.742c-0.040 0.178 0.026 0.365 0.168 0.474 0.142 0.107 0.331 0.115 0.481 0.021l8.158-5.165 8.158 5.165c0.070 0.045 0.147 0.066 0.225 0.066 0.090 0 0.18-0.029 0.256-0.086 0.142-0.109 0.208-0.295 0.168-0.474l-1.707-7.704c0.732-0.386 1.538-1.040 1.538-1.040s-3.195 1.638-14.664 0.838l8.312-6.325s-0.327-0.534-10.744-0.914c-0.697-0.026 8.493-1.83 15.281-0.305z"></path>
        </svg>
    </span>
    <span class="item" data-type="wechat">
        <svg viewBox="0 0 32 32" width="100%" height="100%">
            <path d="M9.062 9.203c0-0.859-0.562-1.422-1.422-1.422-0.844 0-1.703 0.562-1.703 1.422 0 0.844 0.859 1.406 1.703 1.406 0.859 0 1.422-0.562 1.422-1.406zM20.672 17.125c0-0.562-0.562-1.125-1.422-1.125-0.562 0-1.125 0.562-1.125 1.125 0 0.578 0.562 1.141 1.125 1.141 0.859 0 1.422-0.562 1.422-1.141zM16.984 9.203c0-0.859-0.562-1.422-1.406-1.422-0.859 0-1.703 0.562-1.703 1.422 0 0.844 0.844 1.406 1.703 1.406 0.844 0 1.406-0.562 1.406-1.406zM26.906 17.125c0-0.562-0.578-1.125-1.422-1.125-0.562 0-1.125 0.562-1.125 1.125 0 0.578 0.562 1.141 1.125 1.141 0.844 0 1.422-0.562 1.422-1.141zM22.75 10.922c-0.359-0.047-0.719-0.063-1.094-0.063-5.375 0-9.625 4.016-9.625 8.953 0 0.828 0.125 1.625 0.359 2.375-0.359 0.031-0.703 0.047-1.063 0.047-1.422 0-2.547-0.281-3.969-0.562l-3.953 1.984 1.125-3.406c-2.828-1.984-4.531-4.547-4.531-7.656 0-5.391 5.094-9.625 11.328-9.625 5.563 0 10.453 3.391 11.422 7.953zM32 19.687c0 2.547-1.688 4.813-3.969 6.516l0.859 2.828-3.109-1.703c-1.141 0.281-2.281 0.578-3.406 0.578-5.391 0-9.625-3.688-9.625-8.219s4.234-8.219 9.625-8.219c5.094 0 9.625 3.688 9.625 8.219z"></path>
        </svg>
    </span>
    <span class="item" data-type="weibo">
        <svg viewBox="0 0 32 32" width="100%" height="100%">
            <path d="M13.444 27.064c-5.3 0.525-9.875-1.875-10.219-5.35-0.344-3.481 3.675-6.719 8.969-7.244 5.3-0.525 9.875 1.875 10.212 5.35 0.35 3.481-3.669 6.725-8.963 7.244zM24.038 15.521c-0.45-0.137-0.762-0.225-0.525-0.819 0.512-1.287 0.563-2.394 0.006-3.188-1.038-1.481-3.881-1.406-7.137-0.037 0 0-1.025 0.444-0.762-0.363 0.5-1.613 0.425-2.956-0.356-3.737-1.769-1.769-6.469 0.069-10.5 4.1-3.013 3.006-4.763 6.212-4.763 8.981 0 5.287 6.787 8.506 13.425 8.506 8.7 0 14.494-5.056 14.494-9.069 0-2.431-2.044-3.806-3.881-4.375z"></path>
            <path d="M29.819 5.833c-2.1-2.331-5.2-3.219-8.063-2.612v0c-0.663 0.144-1.081 0.794-0.938 1.45 0.144 0.662 0.788 1.081 1.45 0.938 2.038-0.431 4.238 0.2 5.731 1.856s1.9 3.913 1.256 5.888v0c-0.206 0.644 0.144 1.331 0.788 1.544 0.644 0.206 1.331-0.144 1.544-0.787v-0.006c0.9-2.762 0.331-5.938-1.769-8.269z"></path>
            <path d="M26.588 8.752c-1.025-1.138-2.538-1.569-3.925-1.269-0.569 0.119-0.931 0.688-0.813 1.256 0.125 0.569 0.688 0.931 1.25 0.806v0c0.681-0.144 1.419 0.069 1.919 0.619 0.5 0.556 0.637 1.313 0.419 1.975v0c-0.175 0.55 0.125 1.15 0.681 1.331 0.556 0.175 1.15-0.125 1.331-0.681 0.438-1.356 0.163-2.906-0.863-4.037z"></path>
            <path d="M13.738 20.771c-0.188 0.319-0.594 0.469-0.912 0.337-0.319-0.125-0.412-0.488-0.231-0.794 0.188-0.306 0.581-0.456 0.894-0.337 0.313 0.113 0.425 0.469 0.25 0.794zM12.044 22.933c-0.512 0.819-1.613 1.175-2.438 0.8-0.813-0.369-1.056-1.319-0.544-2.119 0.506-0.794 1.569-1.15 2.388-0.806 0.831 0.356 1.1 1.3 0.594 2.125zM13.969 17.146c-2.519-0.656-5.369 0.6-6.463 2.819-1.119 2.262-0.037 4.781 2.506 5.606 2.638 0.85 5.75-0.456 6.831-2.894 1.069-2.394-0.262-4.85-2.875-5.531z"></path>
        </svg>
    </span>
    <span class="item" data-type="twitter">
        <svg viewBox="0 0 32 32" width="100%" height="100%">
            <path d="M32.003 6.075c-1.175 0.525-2.444 0.875-3.769 1.031 1.356-0.813 2.394-2.1 2.887-3.631-1.269 0.75-2.675 1.3-4.169 1.594-1.2-1.275-2.906-2.069-4.794-2.069-3.625 0-6.563 2.938-6.563 6.563 0 0.512 0.056 1.012 0.169 1.494-5.456-0.275-10.294-2.888-13.531-6.862-0.563 0.969-0.887 2.1-0.887 3.3 0 2.275 1.156 4.287 2.919 5.463-1.075-0.031-2.087-0.331-2.975-0.819 0 0.025 0 0.056 0 0.081 0 3.181 2.263 5.838 5.269 6.437-0.55 0.15-1.131 0.231-1.731 0.231-0.425 0-0.831-0.044-1.237-0.119 0.838 2.606 3.263 4.506 6.131 4.563-2.25 1.762-5.075 2.813-8.156 2.813-0.531 0-1.050-0.031-1.569-0.094 2.913 1.869 6.362 2.95 10.069 2.95 12.075 0 18.681-10.006 18.681-18.681 0-0.287-0.006-0.569-0.019-0.85 1.281-0.919 2.394-2.075 3.275-3.394z"></path>
        </svg>
    </span>
    <span class="item__qr"></span>
</div>        </div>
        <div class="wrapper">
            <section class="vditor-reset articles article__content">
                <p>这是一个简单了 Shell 实例。<br>下面是它的要求描述：<br><br>
<meta content="text/html; charset=utf-8" http-equiv="CONTENT-TYPE"></p>
<title></title>
<meta content="OpenOffice.org 2.2  (Linux)" name="GENERATOR">
<meta content="LEGEND" name="AUTHOR">
<meta content="20050510;19440000" name="CREATED">
<meta content="SEI" name="CHANGEDBY">
<meta content="20050106;15320000" name="CHANGED"> 	 	 	 	 	 	 	<style type="text/css">
	<!--
		@page { size: 21cm 29.7cm; margin: 2cm }
		P { margin-bottom: 0.21cm }
		A:link { color: #0000ff }
	-->
	</style>
<p style="text-indent: 3.7cm; margin-bottom: 0cm;">实验五    <font face="文鼎PL细上海宋Uni, serif">UNIX <span lang="en-GB">Shell </span></font>程序设计</p>
<p style="margin-bottom: 0cm;"><br> </p>
<ol>
    <li>
    <p style="margin-bottom: 0cm;">实验内容：使用<font face="文鼎PL细上海宋Uni, serif">UNIX 	<span lang="en-GB">S</span>hell</font>程序设计语言，编写<font face="文鼎PL细上海宋Uni, serif">UNIX 	<span lang="en-GB">S</span>hell </font>应用程序。</p>
    </li>
</ol>
<p style="margin-left: 0.32cm; margin-bottom: 0cm;"><br> </p>
<ol start="2">
    <li>
    <p style="margin-bottom: 0cm;">实验要求：按下列要求编写<font face="文鼎PL细上海宋Uni, serif">Shell</font>脚本，把所学的各种<font face="文鼎PL细上海宋Uni, serif">UNIX</font>命令串联起来。</p>
    </li>
</ol>
<p style="margin-bottom: 0cm;"><br> </p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><font face="宋体, SimSun">1.</font>运行<font face="宋体, SimSun">Shell</font>脚本，首先显示类似如下的菜单：</p>
<p style="margin-bottom: 0cm;">           <font face="宋体, SimSun">What would you like to do:</font></p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"> <font face="宋体, SimSun">List Directory **********************1</font></p>
<p style="margin-bottom: 0cm;">     <font face="宋体, SimSun">Change Directory*********************2</font></p>
<p style="margin-bottom: 0cm;">     <font face="文鼎PL细上海宋Uni, serif"><font face="宋体, SimSun">Edit file****************************3</font></font></p>
<p style="margin-bottom: 0cm;">     <font face="宋体, SimSun">Remove file**************************4</font></p>
<p style="margin-bottom: 0cm;">     <font face="文鼎PL细上海宋Uni, serif"><font face="宋体, SimSun">Add messages in a file***************5</font></font></p>
<p style="margin-bottom: 0cm;">     <font face="文鼎PL细上海宋Uni, serif"><font face="宋体, SimSun">Search keyword in a specified file***6</font></font></p>
<p style="margin-bottom: 0cm;">     <font face="文鼎PL细上海宋Uni, serif"><font face="宋体, SimSun">Exit Menu****************************7</font></font></p>
<p style="text-indent: 2.41cm; margin-bottom: 0cm;"><font face="宋体, SimSun">Enter your choice:</font></p>
<p style="text-indent: 2.41cm; margin-bottom: 0cm;"><br> </p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><font face="宋体, SimSun">2</font>．输入<font face="宋体, SimSun">1</font>：以长格式列出当前目录内容。</p>
<p style="margin-left: 1.11cm; text-indent: -0.37cm; margin-bottom: 0cm;"> <font face="宋体, SimSun">3</font>．输入<font face="宋体, SimSun">2</font>：改变工作目录到自己指定的目标目录中。（要求改变后可以用选项<font face="宋体, SimSun">1</font>查看该目录中的内容）</p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><font face="宋体, SimSun">4</font>．输入<font face="宋体, SimSun">3</font>：提示输入一个文件名（该文件可能不存在），然后调用<font face="宋体, SimSun">vi</font>编辑器进行编辑。</p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><font face="宋体, SimSun">5</font>．输入<font face="宋体, SimSun">4</font>：删除一个指定的文件。</p>
<p style="margin-left: 1.3cm; text-indent: -0.56cm; margin-bottom: 0cm;"> <font face="文鼎PL细上海宋Uni, serif"><font face="宋体, SimSun">6</font></font>．输入<font face="文鼎PL细上海宋Uni, serif">5: </font>提示输入一个文件名，然后将用户在键盘上命令行方式下输入的任何信息都添加并保存到这个文件中，直到用户输入一个空行后才完成该项操作。</p>
<p style="margin-left: 1.48cm; text-indent: -0.37cm; margin-bottom: 0cm;">  注意：该操作不能是只输入一行后就停止，要能不断输入多行信息；不能调用<font face="文鼎PL细上海宋Uni, serif">vi</font>编辑器来输入。</p>
<p style="text-indent: 1.11cm; margin-bottom: 0cm;">例如：一个名为”<font face="文鼎PL细上海宋Uni, serif">phone”</font>的文件，原有内容为（也可以是无内容的新文件）：</p>
<p style="text-indent: 2.75cm; margin-bottom: 0cm;">“ <font face="文鼎PL细上海宋Uni, serif">This is a phone list”</font></p>
<p style="text-indent: 2.22cm; margin-bottom: 0cm;">现在要在其后添加一些电话薄的字段信息，</p>
<p style="text-indent: 2.22cm; margin-bottom: 0cm;">选择“<font face="文鼎PL细上海宋Uni, serif">5”</font>后，显示：<font face="文鼎PL细上海宋Uni, serif">Input the filename that you want to add messages:</font></p>
<p style="text-indent: 2.22cm; margin-bottom: 0cm;">然后从键盘输入文件名：<font face="文鼎PL细上海宋Uni, serif">phone</font></p>
<p style="text-indent: 2.22cm; margin-bottom: 0cm;">接着提示：输入要添加的信息，例如用户要添加如下信息：</p>
<p style="text-indent: 3.18cm; margin-bottom: 0cm;"><br> </p>
<p style="text-indent: 1.85cm; margin-bottom: 0cm;"><font face="文鼎PL细上海宋Uni, serif">David  Brown    (7771)   91101111    <font color="#0000ff"><a href="mailto:m@m.com" target="_blank"><font color="#000000"><span style="text-decoration: none;">m@m.com</span></font></a></font>      …………</font></p>
<p style="text-indent: 1.85cm; margin-bottom: 0cm;"><font face="文鼎PL细上海宋Uni, serif">Emma  Redd      (6970)   22292222    <font color="#0000ff"><a href="mailto:in@o.com" target="_blank"><font color="#000000"><span style="text-decoration: none;">in@o.com</span></font></a></font>     ………..</font></p>
<p style="text-indent: 1.85cm; margin-bottom: 0cm;"><font face="文鼎PL细上海宋Uni, serif">Tom  Swanson    (823)    44474444    <font color="#0000ff"><a href="mailto:ai@e.com" target="_blank"><font color="#000000"><span style="text-decoration: none;">ai@e.com</span></font></a></font>     ………..</font></p>
<p style="text-indent: 1.85cm; margin-bottom: 0cm;"><font face="文鼎PL细上海宋Uni, serif">Ming  Li        (0871)   3133333     <font color="#0000ff"><a href="mailto:bb@r.com" target="_blank"><font color="#000000"><span style="text-decoration: none;">bb@r.com</span></font></a></font>     ………..</font></p>
<p style="margin-bottom: 0cm;">……………<font face="文鼎PL细上海宋Uni, serif">.         ……     ……..       …………     ………..</font></p>
<p style="margin-bottom: 0cm;"><br> </p>
<p style="margin-left: 1.85cm; margin-bottom: 0cm;">输入完成后，当用户输入一个空行即完成该项添加信息的操作<font face="文鼎PL细上海宋Uni, serif"><font face="宋体, SimSun">,</font></font>并退出该选项。该”<font face="文鼎PL细上海宋Uni, serif">phone”</font>文件添加后变为：（可以用选项<font face="文鼎PL细上海宋Uni, serif">3</font>查看）</p>
<p style="margin-bottom: 0cm;"><br> </p>
<p style="margin-bottom: 0cm;">                         </p>
<p style="text-indent: 5.74cm; margin-bottom: 0cm;"> <font face="文鼎PL细上海宋Uni, serif">This is a phone list   </font> </p>
<p style="text-indent: 2.04cm; margin-bottom: 0cm;"><font face="文鼎PL细上海宋Uni, serif">David  Brown    (7771)   91101111    <font color="#0000ff"><a href="mailto:m@m.com" target="_blank"><font color="#000000"><span style="text-decoration: none;">m@m.com</span></font></a></font>      …………</font></p>
<p style="text-indent: 2.04cm; margin-bottom: 0cm;"><font face="文鼎PL细上海宋Uni, serif">Emma  Redd      (6970)   22292222    <font color="#0000ff"><a href="mailto:in@o.com" target="_blank"><font color="#000000"><span style="text-decoration: none;">in@o.com</span></font></a></font>     ………..</font></p>
<p style="text-indent: 2.04cm; margin-bottom: 0cm;"><font face="文鼎PL细上海宋Uni, serif">Tom  Swanson    (823)    44474444    <font color="#0000ff"><a href="mailto:ai@e.com" target="_blank"><font color="#000000"><span style="text-decoration: none;">ai@e.com</span></font></a></font>     ………..</font></p>
<p style="text-indent: 2.04cm; margin-bottom: 0cm;"><font face="文鼎PL细上海宋Uni, serif">Ming  Li        (0871)   3133333     <font color="#0000ff"><a href="mailto:bb@r.com" target="_blank"><font color="#000000"><span style="text-decoration: none;">bb@r.com</span></font></a></font>     ………..</font></p>
<p style="margin-bottom: 0cm;">……………<font face="文鼎PL细上海宋Uni, serif">.         ……     ……..       …………     ………..</font></p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><br> </p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><font face="文鼎PL细上海宋Uni, serif"><font face="宋体, SimSun">7. </font></font>输入<font face="文鼎PL细上海宋Uni, serif"><font face="宋体, SimSun">6</font></font>：在指定的文件中查找某个关键字<font face="文鼎PL细上海宋Uni, serif"><font face="宋体, SimSun">(</font></font>该文件，并显示找到的关键字所在的行。</p>
<p style="margin-left: 1.11cm; margin-bottom: 0cm;">要求：查找时忽略大小写，并在每个找到的输出行前显示行号，<strong>要判断输入的名字是否为文件而非目录</strong>，若是文件则进行查找工作，若文件不存在或是目录则显示出错信息。</p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><font face="文鼎PL细上海宋Uni, serif"><font face="宋体, SimSun">8</font></font>．输入<font face="文鼎PL细上海宋Uni, serif"><font face="宋体, SimSun">7</font></font>：退出该脚本程序，回到<font face="文鼎PL细上海宋Uni, serif"><font face="宋体, SimSun">Shell</font></font>提示符下。</p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><font face="文鼎PL细上海宋Uni, serif"><font face="宋体, SimSun">9</font></font>．在源程序中加入适当的注释。</p>
<p style="margin-bottom: 0cm;"><br> </p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><strong>注意：该菜单要能够反复显示，即各项选完后要能再次返回菜单。</strong></p>
<p style="margin-bottom: 0cm;"><br> </p>
<ol start="3">
    <li>
    <p style="margin-bottom: 0cm;">实验报告：</p>
    </li>
</ol>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><font face="宋体, SimSun">1</font>、将自己编制并调试好的程序，用到的各种文件放在自己的用户主目录下。</p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><font face="宋体, SimSun">2</font>、抄写自己的<font face="宋体, SimSun">Shell</font>源程序（自己加纸写）</p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><font face="宋体, SimSun">3</font>、写出设计思想。</p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><font face="宋体, SimSun">4</font>、写出上机体会与总结</p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><font face="宋体, SimSun">5</font>、回答问题：执行脚本的方式有哪几种，有何区别？</p>
<br><br><font size="2"><span style="color: rgb(255, 0, 0);">完成报告如下：</span></font>
<meta content="text/html; charset=utf-8" http-equiv="CONTENT-TYPE">
<title></title>
<meta content="OpenOffice.org 2.2  (Linux)" name="GENERATOR">
<meta content="daniel" name="AUTHOR">
<meta content="20070703;17484700" name="CREATED">
<meta content="daniel" name="CHANGEDBY">
<meta content="20070703;18203900" name="CHANGED"> 	 	 	 	 	 	 	<style type="text/css">
	<!--
		@page { size: 21cm 29.7cm; margin: 2cm }
		P { margin-bottom: 0.21cm }
	-->
	</style>
<p align="center" style="margin-bottom: 0cm;"><strong>实验五    </strong><font face="文鼎PL细上海宋Uni, serif"><strong>UNIX </strong><span lang="en-GB"><strong>Shell </strong></span></font><strong>程序设计</strong></p>
<p align="left" style="margin-bottom: 0cm;"><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><strong>1. </strong></span></span></font></font><span style="text-decoration: none;"><font size="2"><strong>源代码如下：</strong></font></span></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">#!/bin/bash</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">C="0"</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">#</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"># Do list directory</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">#</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">listDirectory()</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">{</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">ls -l ./</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">return</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">}</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">#</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"># Do change the directory</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">#</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">changeDirectory()</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">{</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">read -p "Input the New Directory Path : " CDI</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style=""># check out wether the directory is exist</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">if [ -d $CDI ]</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">then</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">	cd $CDI</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">else</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">	printf "the Directory is not Exist\n"</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">fi</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">return</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">}</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">#</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"># Do edit a file</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">#</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">editFile()</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">{</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">NFILE=""</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">read -p "Input the File Name to Edit : " NFILE</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">vi $NFILE</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">return</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">}</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">#</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"># Do remove a file</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">#</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">removeFile()</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">{</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">RFILE=""</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">read -p "Input the File Name to Remove : " RFILE</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">if [ -f $RFILE ]</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">then</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">	rm $RFILE</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">else</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">	printf "the File is not Exist\n"</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">fi</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">return</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">}</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">#</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"># Do input messages</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">#</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">addMessages()</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">{</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">MFILE=""</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">read -p "Input the File Name to Add Messages : " MFILE</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;">      </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style=""># start to add new messanges</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">MMSG=""</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">read -p "Input the Messages : " MMSG</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">while [ "$MMSG" != "" ]</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">do</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">      </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">echo $MMSG &gt;&gt; $MFILE</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">      </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">MMSG=""</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">      </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">read -p "Input the Messages : " MMSG</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">done</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">printf "End of the file\n"</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">return</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">}</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">#</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"># Do search Keyword</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">#</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">searchKeyword()</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">{</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">SFILE=""</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">read -p "Input the File Name : " SFILE</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style=""># if it is a directory's name</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">if [ -d $SFILE ]</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">then</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">	printf "the Name input is a Directory\n"</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">	return</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">fi</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style=""># if the file is not exist</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">if [ ! -f $SFILE ]</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">then</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">	printf "the File is not Exist\n"</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">	return</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">fi</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">	</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">KWORD=""</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">read -p "Please Input the KeyWord : " KWORD</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">if [ "$KWORD" != "" ]</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">then</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">	cat $SFILE | grep -n -i $KWORD</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">fi</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">return</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">}</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">#</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"># Do display the menu</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">#</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">displayMenu()</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">{</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">printf "      What Would You Like to Do:        \n"</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">printf "List Directory ....................... 1\n"</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">printf "Change Directory ..................... 2\n"</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">printf "Edit File ............................ 3\n"</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">printf "Remove File .......................... 4\n"</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">printf "Add Messages in a File ............... 5\n"</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">printf "Search Keyword in a Specified File ... 6\n"</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">printf "Exit Menu ............................ 7\n"</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">return</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">}</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">getUserInput()</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">{</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">read -p "Enter Your Choice : " C</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">}</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">while [ $C != "7" ]</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">do</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">        </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">displayMenu</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">	getUserInput</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">	case $C in</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">	    1) printf "\n" ; listDirectory;;</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">	    2) printf "\n" ; changeDirectory;;</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">	    3) printf "\n" ; editFile;;</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">	    4) printf "\n" ; removeFile;;</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">	    5) printf "\n" ; addMessages;;</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">	    6) printf "\n" ; searchKeyword;;</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">	    7) printf "\nThank You for Using, bye-bye\n";;</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">	    *) printf "\bWrong Choice\n";;</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">	esac</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">done</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><strong>2. </strong></span></span></font></font><span style="text-decoration: none;"><font size="2"><strong>测试输出：</strong></font></span></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">daniel@daniel-laptop:~/Desktop$ sh lab5.sh</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">      </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">What Would You Like to Do:        </span></span></span></font></font> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">List Directory ....................... 1</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Change Directory ..................... 2</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Edit File ............................ 3</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Remove File .......................... 4</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Add Messages in a File ............... 5</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Search Keyword in a Specified File ... 6</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Exit Menu ............................ 7</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Enter Your Choice : 1</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">total 19780</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">-rw-r--r-- 1 daniel daniel       0 2007-07-02 17:31 133888847954 </span></span></span></font></font><span style="text-decoration: none;"><font size="2"><span style="">关文武</span></font></span></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">-rw-r--r-- 1 daniel daniel    2497 2007-07-03 11:07 lab5.sh</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">-rw-r--r-- 1 daniel daniel 8220990 2007-07-03 13:40 nuoveXT-1.6.tar.gz</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">-rw-r--r-- 1 daniel daniel 8605556 2007-07-03 13:32 nuoveXT.2.1.tar.bz2</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">drwxr-xr-x 3 daniel daniel    4096 2007-07-01 20:22 swt-M20070212-1330-gtk-linux-x86</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">-rw-r--r-- 1 daniel daniel 3176199 2007-07-01 18:14 swt-M20070212-1330-gtk-linux-x86.zip</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">drwxr-xr-x 3 daniel daniel    4096 2007-02-12 14:51 swt-M20070212-1330-win32-win32-x86</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">-rwxrwx--- 1 daniel daniel  191871 2007-05-25 00:22 </span></span></span></font></font><span style="text-decoration: none;"><font size="2"><span style="">设计模式迷你手册</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">.chm</span></span></font></font></span></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">-rw-r--r-- 1 daniel daniel     647 2007-06-28 11:47 </span></span></span></font></font><span style="text-decoration: none;"><font size="2"><span style="">音频</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">ID</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">技术流程</span></font></span></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">      </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">What Would You Like to Do:        </span></span></span></font></font> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">List Directory ....................... 1</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Change Directory ..................... 2</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Edit File ............................ 3</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Remove File .......................... 4</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Add Messages in a File ............... 5</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Search Keyword in a Specified File ... 6</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Exit Menu ............................ 7</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Enter Your Choice : 2</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Input the New Directory Path : /home/daniel</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">      </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">What Would You Like to Do:        </span></span></span></font></font> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">List Directory ....................... 1</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Change Directory ..................... 2</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Edit File ............................ 3</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Remove File .......................... 4</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Add Messages in a File ............... 5</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Search Keyword in a Specified File ... 6</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Exit Menu ............................ 7</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Enter Your Choice : 1</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">total 6324</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">-rwxr--r--  1 daniel daniel 5090214 2007-05-29 22:08 1.mp3</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">-rw-r--r--  1 daniel daniel  274432 2007-04-18 13:02 BattleLANv0.5.exe</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">drwxr-xr-x  8 daniel daniel    4096 2007-06-30 01:21 Beautify</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">-rw-r--r--  1 daniel daniel  196608 2007-06-11 14:53 DB2 UDB 700 .doc</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">drwxr-xr-x  4 daniel daniel    4096 2007-07-03 17:53 Desktop</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">drwxr-xr-x  2 daniel daniel    4096 2007-05-03 12:42 Downloads</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">-rw-r--r--  1 daniel daniel    1430 2007-05-29 17:12 Instantiations.license</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">-rw-r--r--  1 daniel daniel  172032 2006-11-20 22:32 IPMSG2007.exe</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">-rw-r--r--  1 daniel daniel    1114 2007-07-01 23:33 ipmsg.log</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">-rw-r--r--  1 daniel daniel     365 2007-06-29 22:46 jws_app_shortcut_1183128375333.desktop</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">drwxr-xr-x  6 daniel daniel   12288 2007-05-03 16:07 LumaQQ</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">-rw-r--r--  1 daniel daniel     409 2007-06-20 10:23 MyQQID</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">drwxr-xr-x  3 mysql  daniel    4096 2007-07-01 15:51 mysql</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">-rw-r--r--  1 daniel daniel  434176 2007-07-02 00:57 nautilus-debug-log.txt</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">drwxr-sr-x 11 root   root      4096 2007-06-06 23:39 RealPlayer</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">drwxr-xr-x  4 daniel daniel    4096 2007-06-18 00:30 Software Install Package</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">-rw-r--r--  1 daniel daniel    3405 2007-07-01 21:58 velocity.log</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">-rw-r--r--  1 daniel daniel      63 2007-06-19 11:34 War3</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">drwxr-xr-x 11 daniel daniel    4096 2007-07-02 00:45 WarCraft</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">drwxr-xr-x 10 daniel daniel    4096 2007-06-29 01:20 Work</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">-rw-r--r--  1 daniel daniel  198144 2007-05-02 12:19 </span></span></span></font></font><span style="text-decoration: none;"><font size="2"><span style="">系分论文</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">.doc</span></span></font></font></span></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">-rw-r--r--  1 daniel daniel      93 2007-05-30 22:43 </span></span></span></font></font><span style="text-decoration: none;"><font size="2"><span style="">飞鸽传书</span></font></span></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">      </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">What Would You Like to Do:        </span></span></span></font></font> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">List Directory ....................... 1</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Change Directory ..................... 2</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Edit File ............................ 3</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Remove File .......................... 4</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Add Messages in a File ............... 5</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Search Keyword in a Specified File ... 6</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Exit Menu ............................ 7</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Enter Your Choice : 3</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Input the File Name to Edit : testfile</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">      </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">What Would You Like to Do:        </span></span></span></font></font> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">List Directory ....................... 1</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Change Directory ..................... 2</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Edit File ............................ 3</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Remove File .......................... 4</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Add Messages in a File ............... 5</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Search Keyword in a Specified File ... 6</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Exit Menu ............................ 7</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Enter Your Choice : 5</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Input the File Name to Add Messages : testfile</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Input the Messages : 6</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Input the Messages : 7</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Input the Messages : 8</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Input the Messages : 9</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Input the Messages : </span></font></font> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">End of the file</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">      </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">What Would You Like to Do:        </span></span></span></font></font> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">List Directory ....................... 1</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Change Directory ..................... 2</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Edit File ............................ 3</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Remove File .......................... 4</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Add Messages in a File ............... 5</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Search Keyword in a Specified File ... 6</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Exit Menu ............................ 7</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Enter Your Choice : 3</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Input the File Name to Edit : testfile</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">      </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">What Would You Like to Do:        </span></span></span></font></font> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">List Directory ....................... 1</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Change Directory ..................... 2</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Edit File ............................ 3</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Remove File .......................... 4</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Add Messages in a File ............... 5</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Search Keyword in a Specified File ... 6</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Exit Menu ............................ 7</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Enter Your Choice : 6</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Input the File Name : testfile</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Please Input the KeyWord : 7</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">7:7</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">      </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">What Would You Like to Do:        </span></span></span></font></font> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">List Directory ....................... 1</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Change Directory ..................... 2</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Edit File ............................ 3</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Remove File .......................... 4</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Add Messages in a File ............... 5</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Search Keyword in a Specified File ... 6</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Exit Menu ............................ 7</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Enter Your Choice : 7   </span></font></font> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">Thank You for Using, bye-bye</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><strong>3. </strong></span></span></font></font><span style="text-decoration: none;"><font size="2"><strong>设计思路</strong></font></span></p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;"><font size="2"><span style="">需求中的</span></font></span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">1-5</span></span></span></font></font><span style="text-decoration: none;"><font size="2"><span style="">比较简单，这里就不赘述了。主要解释一下</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">6</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">、</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">7</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">点的需求是如何设计与实现的。</span></font></span></p>
<p align="left" style="margin-bottom: 0cm;"><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">6)</span></span></span></font></font><span style="text-decoration: none;"><font size="2"><span style="">需求即对应源代码里的</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">addMessage</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">函数，主要原理是利用重定向操作把用户的输入数据追加到文件末尾，主要代码如下：</span></font></span></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">while [ "$MMSG" != "" ]</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">do</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">      </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">echo $MMSG &gt;&gt; $MFILE</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">      </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">MMSG=""</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">      </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">read -p "Input the Messages : " MMSG</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">done</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm;"><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">7)</span></span></span></font></font><span style="text-decoration: none;"><font size="2"><span style="">该需求对应源代码里的</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">searchKeyword</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">函数，在判断完用户的输入文件名的合法性与文件是否存在之后，使用</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">grep(</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">带参数 </span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">-n</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">回应行号 </span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">-i</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">忽略大小写</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">)</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">进行查找。主要代码如下：</span></font></span></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">KWORD=""</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">read -p "Please Input the KeyWord : " KWORD</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">if [ "$KWORD" != "" ]</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">then</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB">	cat $SFILE | grep -n -i $KWORD</span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">fi</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;">    </span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">return</span></span></span></font></font></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><strong>4. </strong></span></span></font></font><span style="text-decoration: none;"><font size="2"><strong>上机体会与总结</strong></font></span></p>
<p align="left" style="margin-bottom: 0cm;"><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">1</span></span></span></font></font><span style="text-decoration: none;"><font size="2"><span style="">）在写</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">Shell</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">脚本的时候我们应该注意使用重定向操作符，方便完成对文件的</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">I/O</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">操作</span></font></span></p>
<p align="left" style="margin-bottom: 0cm;"><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">2</span></span></span></font></font><span style="text-decoration: none;"><font size="2"><span style="">）应该学会使用</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">grep, awk</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">之类的文本操作工具，这样当我们处理大量文本操作的时候效率将大大提高  </span></font></span> </p>
<p align="left" style="margin-bottom: 0cm;"><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style="">3) </span></span></span></font></font><span style="text-decoration: none;"><font size="2"><span style="">写</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">shell</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">脚本的时候要注意</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">Shell</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">脚本的语法和</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">C</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">语言的语法的区别，不要搞混了</span></font></span></p>
<p align="left" style="margin-bottom: 0cm; text-decoration: none;"> <br> </p>
<p align="left" style="margin-bottom: 0cm;"><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><strong>5. </strong></span></span></font></font><span style="text-decoration: none;"><font size="2"><strong>执行</strong></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><strong>Shell</strong></span></font></font></span><span style="text-decoration: none;"><font size="2"><strong>脚本的方式</strong></font></span></p>
<p align="left" style="margin-bottom: 0cm;"><span style="text-decoration: none;"><font size="2"><span style="">执行一个脚本一般有三种方法：</span></font></span><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="text-decoration: none;"><span style=""><br>1) </span></span></span></font></font><span style="text-decoration: none;"><font size="2"><span style="">将该脚本权限设置为可执行</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">(chmod +x filename)</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">，然后直接用脚本的名字执行，这种方法相当于一个普通的命令。</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style=""><br>2) . filename (</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">点空格</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">filename</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">，这样就默认使用</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">sh</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">执行该脚本，并且不生成子</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">shell</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">，是在当前</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">shell</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">下运行</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">,</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">不用设置可执行权限。</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style=""><br>3) sh filename (</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">生成子</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">shell,</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">在该种模式下常用于调试脚本，如</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">sh -x filename</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">，也不用设置可执行权限</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">)</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">。</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style=""><br></span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">当然还可以用</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style="">exec</span></span></font></font></span><span style="text-decoration: none;"><font size="2"><span style="">来执行，但一般不用，因为可能会有点危险。</span></font><font face="文鼎PL细上海宋Uni, serif"><font size="2"><span lang="en-GB"><span style=""><br></span></span></font></font></span><br> </p>
                    <div>
                        <br>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- D博客文章签名档 -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-5357405790190342"
     data-ad-slot="7757575754"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
                    </div>
            </section>
        </div>

    </div>
        <div id="b3logsolocomments"></div>
        <div class="wrapper">
            <div id="vcomment"
                 style="    margin-bottom: 40px; margin-top: 80px;
        border: 1px solid rgba(255,255,255,0.8);
        border-radius: 5px;
        background: rgba(255,255,255,0.9);
        box-shadow: 0 1px 4px rgba(0,0,0,0.04);
        padding: 20px;"
                 data-name="88250" data-postId="1183487160000"></div>
        </div>
    <div class="article__bottom">
        <div class="wrapper">
            <div class="fn__flex">
                    <div class="item" id="externalRelevantArticles"></div>
                <div class="item" id="randomArticles"></div>
                <div class="item" id="relevantArticles"></div>
            </div>
        </div>
    </div>
    
</div>
<script type="text/javascript"
        src="https://cdn.jsdelivr.net/gh/88250/solo@4.2.0/src/main/resources/skins/Bubble/js/TweenMax.min.js?1593357893538"
        charset="utf-8"></script>
<footer class="footer">
    <div class="wrapper">
            <a href="https://hacpai.com/member/88250"
       title="https://hacpai.com/member/88250"
       class="user__site"
       target="_blank" rel="noopener nofollow">
        <svg viewBox="0 0 32 32" width="100%" height="100%">
            <path fill="#d23f31" style="fill: var(--color1, #d23f31)" d="M5.787 17.226h17.033l5.954 9.528c0.47 0.752 0.003 1.361-1.042 1.361h-15.141z"></path>
            <path d="M10.74 3.927h17.033c1.045 0 1.512 0.609 1.042 1.361l-5.954 9.528h-19.872l6.379-10.209c0.235-0.376 0.849-0.681 1.372-0.681z"></path>
            <path d="M2.953 17.226h2.839l6.804 10.889h-1.892c-0.523 0-1.137-0.305-1.372-0.681z"></path>
        </svg>
    </a>

        <a href="https://github.com/88250"
           title="https://github.com/88250"
           class="user__site"
           target="_blank" rel="noopener nofollow">
            <svg viewBox="0 0 32 32" width="100%" height="100%">
                <path d="M16 0.331c-8.836 0-16 7.163-16 16 0 7.069 4.585 13.067 10.942 15.182 0.8 0.148 1.094-0.347 1.094-0.77 0-0.381-0.015-1.642-0.022-2.979-4.452 0.968-5.391-1.888-5.391-1.888-0.728-1.849-1.776-2.341-1.776-2.341-1.452-0.993 0.11-0.973 0.11-0.973 1.606 0.113 2.452 1.649 2.452 1.649 1.427 2.446 3.743 1.739 4.656 1.33 0.143-1.034 0.558-1.74 1.016-2.14-3.554-0.404-7.29-1.777-7.29-7.907 0-1.747 0.625-3.174 1.649-4.295-0.166-0.403-0.714-2.030 0.155-4.234 0 0 1.344-0.43 4.401 1.64 1.276-0.355 2.645-0.532 4.005-0.539 1.359 0.006 2.729 0.184 4.008 0.539 3.054-2.070 4.395-1.64 4.395-1.64 0.871 2.204 0.323 3.831 0.157 4.234 1.026 1.12 1.647 2.548 1.647 4.295 0 6.145-3.743 7.498-7.306 7.895 0.574 0.497 1.085 1.47 1.085 2.963 0 2.141-0.019 3.864-0.019 4.391 0 0.426 0.288 0.925 1.099 0.768 6.354-2.118 10.933-8.113 10.933-15.18 0-8.837-7.164-16-16-16z"></path>
            </svg>
        </a>

 <br>
        &copy; 2020
        <a href="https://dl88250.gitee.io">D 的个人博客</a>
        
        <span class="footer__heart">❤️</span>
    </div>
</footer>
<svg class="side__top" id="sideTop" version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
    <path d="M26.562 13.958c0 0.72 0.583 1.303 1.303 1.303s1.303-0.583 1.303-1.303v0c0-0.72-0.583-1.303-1.303-1.303s-1.303 0.583-1.303 1.303v0zM23.305 10.7c0 0 0 0 0 0 0 0.72 0.583 1.303 1.303 1.303s1.303-0.583 1.303-1.303c0-0 0-0 0-0v0c0-0 0-0 0-0 0-0.72-0.583-1.303-1.303-1.303s-1.303 0.583-1.303 1.303c0 0 0 0 0 0v0zM20.022 7.417c0 0 0 0 0 0 0 0.72 0.583 1.303 1.303 1.303s1.303-0.583 1.303-1.303c0-0 0-0 0-0v0c0-0 0-0 0-0 0-0.72-0.583-1.303-1.303-1.303s-1.303 0.583-1.303 1.303c0 0 0 0 0 0v0zM29.67 0h-27.339c-0.677 0-1.228 0.551-1.228 1.228s0.551 1.228 1.228 1.228h11.151l-10.725 10.725c-0.476 0.476-0.476 1.253 0 1.729 0.226 0.226 0.551 0.351 0.852 0.351s0.626-0.125 0.852-0.351l10.074-10.074v25.936c0 0.677 0.551 1.228 1.228 1.228s1.228-0.551 1.228-1.228v-26.011c0.476 0.426 1.203 0.426 1.679-0.050s0.476-1.253 0-1.729l-0.576-0.576h11.577c0.677 0 1.228-0.551 1.228-1.228 0-0.626-0.551-1.178-1.228-1.178z"></path>
</svg>
<script>
  var Label = {
    speech: true,
    servePath: "https://dl88250.gitee.io",
    staticServePath: "https://cdn.jsdelivr.net/gh/88250/solo@4.2.0/src/main/resources",
    luteAvailable: true,
    hljsStyle: 'monokai',
    langLabel: "zh_CN",
    version: "4.2.0",
    staticSite: true,
    showCodeBlockLn: true,
  }
</script>
<script type="text/javascript"
        src="https://cdn.jsdelivr.net/gh/88250/solo@4.2.0/src/main/resources/skins/Bubble/js/common.min.js?1593357893538"
        charset="utf-8"></script>
<script type="text/javascript"
        src="https://cdn.jsdelivr.net/gh/88250/solo@4.2.0/src/main/resources/skins/Bubble/js/circleMagic.min.js?1593357893538"
        charset="utf-8"></script>
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/kanbanniang@0.2.8/index.css"/>
<script async src="https://cdn.jsdelivr.net/npm/kanbanniang@0.2.8/index.js"></script>
<div class="solo-kanbanniang">
    <div class="solo-kanbanniang__tip"></div>
    <canvas id="soloKanbanniang" width="280" height="250"></canvas>
    <div class="solo-kanbanniang__tool">
        <svg id="soloKanbanniangHome" viewBox="0 0 32 32" width="100%" height="100%">
            <path d="M32 18.967l-16-12.42-16 12.42v-5.064l16-12.42 16 12.42zM28 18.516v12h-8v-8h-8v8h-8v-12l12-9z"></path>
        </svg>
        <svg id="soloKanbanniangRSS" viewBox="0 0 1024 1024" width="32" height="32">
            <path d="M320.364 768q0 45.728-32 77.728t-77.728 32-77.728-32-32-77.728 32-77.728 77.728-32 77.728 32 32 77.728zM612.94 838.272q1.152 16-9.728 27.424-10.272 12-26.848 12h-77.152q-14.272 0-24.576-9.44t-11.424-23.712q-12.576-130.848-105.44-223.712t-223.712-105.44q-14.272-1.152-23.712-11.424t-9.44-24.576V402.24q0-16.576 12-26.848 9.728-9.728 24.576-9.728h2.848q91.424 7.424 174.848 46.016t148 103.712q65.152 64.576 103.712 148t46.016 174.848z m292.576 1.152q1.152 15.424-10.272 26.848-10.272 11.424-26.272 11.424h-81.728q-14.848 0-25.44-10.016t-11.136-24.288q-6.848-122.848-57.728-233.44t-132.288-192-192-132.288-233.44-58.272q-14.272-0.576-24.288-11.136t-10.016-24.864V109.664q0-16 11.424-26.272 10.272-10.272 25.152-10.272h1.728q149.728 7.424 286.56 68.576t243.136 168q106.848 106.272 168 243.136t68.576 286.56z"></path>
        </svg>
        <svg id="soloKanbanniangChat" viewBox="0 0 1024 1024" width="32" height="32">
            <path d="M802.42709 96.163153H219.476155c-84.48109 0-154.896836 71.746044-154.896836 157.840888v393.119449c0 86.072331 70.415746 157.819398 154.896836 157.819399h214.038818V925.470963s22.526039 40.168862 64.767096 5.734608c30.965246-25.819039 126.721123-91.828428 171.775248-123.385145h132.369773c84.502579 0 154.896836-83.21526 154.896836-157.839865V251.125481c0-86.094844-70.394257-154.962328-154.896836-154.962328zM301.144176 518.002714c-39.427988 0-70.416769-31.576159-70.416769-71.746044 0-40.168862 30.988782-71.746044 70.416769-71.746044 39.426965 0 70.393233 31.577183 70.393234 71.746044 0 40.169885-30.966269 71.746044-70.393234 71.746044z m208.411657 0c-39.450501 0-70.415746-31.576159-70.415746-71.746044 0-40.168862 30.965246-71.746044 70.415746-71.746044 39.405475 0 70.394257 31.577183 70.394257 71.746044 0 40.169885-30.988782 71.746044-70.394257 71.746044z m211.203236 0c-39.426965 0-70.416769-31.576159-70.416769-71.746044 0-40.168862 30.988782-71.746044 70.416769-71.746044s70.415746 31.577183 70.415746 71.746044c-0.001023 40.169885-30.988782 71.746044-70.415746 71.746044z"></path>
        </svg>
        <svg id="soloKanbanniangChange" viewBox="0 0 1024 1024" width="32" height="32">
            <path d="M936.672 193.216l-226.88-64c-8.704-2.528-18.112-1.12-25.824 3.776-7.68 4.864-12.896 12.736-14.432 21.728C655.712 236.928 595.328 288 512 288c-71.424 0-142.464-103.296-163.776-143.104-7.136-13.28-22.528-19.84-37.024-15.68l-224 64C73.472 197.152 64 209.728 64 224v256a31.93 31.93 0 0 0 11.712 24.736c7.392 6.08 17.152 8.512 26.56 6.624L224 487.04V832c0 52.928 43.072 96 96 96h384c52.928 0 96-43.072 96-96V519.04l121.728 24.352c9.44 1.92 19.2-0.544 26.56-6.624C955.68 530.656 960 521.6 960 512V224c0-14.336-9.536-26.912-23.328-30.784zM672 800H352c-17.664 0-32-14.304-32-32s14.336-32 32-32h320c17.696 0 32 14.304 32 32s-14.304 32-32 32z"></path>
        </svg>
        <svg id="soloKanbanniangPhoto" viewBox="0 0 1024 1024" width="32" height="32">
            <path d="M898.048 258.048q23.552-1.024 46.592 9.216t40.96 27.136 28.672 39.424 10.752 46.08l0 390.144q0 24.576-10.752 47.104t-28.672 40.448-40.96 28.16-47.616 10.24l-697.344 0q-24.576 0-48.64-10.24t-42.496-27.648-29.696-40.448-11.264-48.64l0-381.952q0-22.528 10.752-45.568t28.672-41.472 39.936-30.208 44.544-11.776l63.488 0 13.312-83.968q3.072-20.48 18.432-32.768t34.816-12.288l456.704 0q19.456 0 34.304 10.752t16.896 34.304l14.336 83.968 54.272 0zM548.864 712.704q40.96 0 77.824-15.872t63.488-42.496 42.496-62.976 15.872-77.312-15.872-77.312-42.496-62.976-63.488-42.496-77.824-15.872-77.312 15.872-63.488 42.496-43.008 62.976-15.872 77.312 15.872 77.312 43.008 62.976 63.488 42.496 77.312 15.872z"></path>
        </svg>
        <svg id="soloKanbanniangGithub" viewBox="0 0 1024 1024" width="32" height="32">
            <path d="M1024 524.8c0 114.346667-32.554667 217.216-97.706667 308.565333-65.066667 91.306667-149.162667 154.538667-252.288 189.610667-11.989333 2.304-20.778667 0.682667-26.325333-4.778667a27.605333 27.605333 0 0 1-8.362667-20.48v-144.213333c0-44.16-11.52-76.501333-34.645333-97.024 25.344-2.730667 48.085333-6.826667 68.309333-12.288a268.629333 268.629333 0 0 0 62.72-26.666667 187.434667 187.434667 0 0 0 53.973334-45.44c14.421333-18.005333 26.197333-41.898667 35.328-71.765333 9.088-29.824 13.653333-64.128 13.653333-102.826667 0-55.125333-17.536-102.058667-52.650667-140.8 16.426667-41.429333 14.677333-87.893333-5.333333-139.392-12.458667-4.096-30.464-1.578667-54.016 7.509334a355.328 355.328 0 0 0-61.312 30.08L640 271.274667a462.336 462.336 0 0 0-128-17.749334c-43.989333 0-86.656 5.930667-128 17.749334a589.824 589.824 0 0 0-28.330667-18.432c-11.776-7.253333-30.336-16.042667-55.68-26.325334-25.344-10.24-44.416-13.312-57.301333-9.216-19.584 51.498667-21.12 97.962667-4.693333 139.434667-35.114667 38.698667-52.650667 85.632-52.650667 140.757333 0 38.698667 4.565333 72.874667 13.653333 102.485334 9.130667 29.610667 20.778667 53.546667 34.986667 71.765333 14.250667 18.218667 32.128 33.493333 53.674667 45.781333 21.546667 12.288 42.453333 21.205333 62.677333 26.666667 20.224 5.461333 43.008 9.557333 68.309333 12.288-17.749333 16.384-28.629333 39.850667-32.64 70.4a130.005333 130.005333 0 0 1-29.994666 10.24c-10.666667 2.261333-23.338667 3.413333-37.973334 3.413333-14.72 0-29.269333-4.906667-43.690666-14.677333-14.464-9.813333-26.794667-24.064-36.992-42.709333a109.226667 109.226667 0 0 0-32.341334-35.541334c-13.141333-9.130667-24.106667-14.592-33.024-16.426666l-13.312-2.048c-9.344 0-15.786667 1.024-19.328 3.072-3.584 2.090667-4.693333 4.693333-3.328 7.893333 1.28 3.157333 3.328 6.4 5.973334 9.557333 2.688 3.2 5.546667 5.930667 8.661333 8.192l4.693333 3.413334c9.770667 4.565333 19.413333 13.226667 29.013334 25.984 9.514667 12.757333 16.512 24.362667 20.992 34.858666l6.656 15.701334c5.76 17.322667 15.530667 31.317333 29.312 42.026666 13.781333 10.666667 28.672 17.536 44.672 20.48 16 2.986667 31.445333 4.565333 46.336 4.821334 14.890667 0.213333 27.221333-0.597333 36.992-2.389334l15.36-2.730666c0 17.28 0.085333 37.546667 0.298666 60.8l0.341334 36.906666a27.050667 27.050667 0 0 1-8.661334 20.48c-5.76 5.461333-14.677333 7.082667-26.666666 4.778667-103.125333-35.072-187.221333-98.261333-252.330667-189.610667C32.554667 742.058667 0 639.146667 0 524.8c0-95.232 22.869333-183.04 68.693333-263.466667A516.266667 516.266667 0 0 1 254.976 70.4C333.44 23.466667 419.114667 0 512 0c92.885333 0 178.56 23.466667 256.981333 70.4a516.266667 516.266667 0 0 1 186.368 190.976C1001.130667 341.802667 1024 429.653333 1024 524.842667z"></path>
        </svg>
        <svg id="soloKanbanniangClose" viewBox="0 0 1024 1024" width="32" height="32">
            <path d="M517.572566143763 1018.6748601482986C238.26554897656422 1018.6748601482986 11.897910175114305 792.2714997690043 11.897910175114305 513.0002041796496c0-279.3070171671984 226.36763880144977-505.71037754649296 505.6746559686481-505.71037754649296 279.2712955893538 0 505.6746559686481 226.40336037929444 505.6746559686481 505.71037754649296C1023.2472221124112 792.2714997690043 796.8795833109612 1018.6748601482986 517.572566143763 1018.6748601482986zM754.7281214542927 339.25044954334646c13.752807470184345-13.752807470184345 9.680547595895998-40.186775075214015-9.073280772537204-58.94060344364717l-2.143294670678079-2.1075730928334457c-18.7538283684332-18.7538283684332-45.15207439561819-22.861809820566194-58.90488186580257-9.073280772537204l-168.21291007038468 168.24863164822932-180.42968969324974-180.46541127109438c-13.967136937252159-13.967136937252159-40.72259874288353-9.823433907274534-59.72647815622916 9.216167083915742l-2.143294670678079 2.143294670678079c-19.039600991190277 19.003879413345654-23.111860865478626 45.75934121897699-9.180445506071107 59.655035000539876l180.42968969324974 180.46541127109438-176.07165719620428 176.03593561835962c-13.788529048028984 13.824250625873615-9.716269173740633 40.151053497369375 9.073280772537204 58.94060344364717l2.1075730928334457 2.1075730928334457c18.7538283684332 18.7538283684332 45.15207439561819 22.897531398410823 58.90488186580257 9.073280772537204l176.10737877404887-176.10737877404887 170.39192631890742 170.42764789675192c13.967136937252159 13.931415359407513 40.686877165038865 9.85915548511917 59.690756578384516-9.180445506071107l2.1790162485227142-2.1790162485227142c19.039600991190277-18.968157835501014 23.147582443323273-45.72361964113239 9.180445506071107-59.690756578384516l-170.39192631890742-170.42764789675192L754.7281214542927 339.25044954334646z"></path>
        </svg>
    </div>
</div>


<script type="text/javascript">
    Util.addScript('https://cdn.jsdelivr.net/gh/88250/solo@4.2.0/src/main/resources/js/page.min.js?1593357893538', 'soloPageScript')
    var page = new Page({
        "commentContentCannotEmptyLabel": "评论内容只能为 2 到 500 个字符！",
        "oId": "1183487160000",
        "blogHost": "https://dl88250.gitee.io",
        "randomArticles1Label": "随机阅读：",
        "externalRelevantArticles1Label": "站外相关阅读："
    });
    $(document).ready(function () {
        page.load();
    page.tips.externalRelevantArticlesDisplayCount = "7";
        page.loadRandomArticles('<h3>随机阅读</h3>');
        page.loadExternalRelevantArticles("Shell Programming",
        '<h3>站外相关阅读</h3>');
        page.loadRelevantArticles('1183487160000', '<h3>相关阅读</h3>');
    Skin.initArticle()
    });
</script>

</body>
</html>

<!-- Generated by Latke (https://github.com/88250/latke) in 202ms, 2020/06/28 23:27:07 -->